package com.hrzyit.base.utils

import com.hrzyit.base.utils.digest.AESUtils

object AESTest {
    val SALT: ByteArray = byteArrayOf(-47, 66, 32, -127, -102, -51, 79, -69, 57, 85, -91, -42, 74, -116, -46, -113, -13, 34, -24, 39)


    @JvmStatic
    fun main(args: Array<String>) {
        var source = "1234杨崴5 6789"

        val keySource = "com.hrzyit.whister".toByteArray()


        println("加密前的字符串:$source")
        val encryptString = AESUtils.encrypt(source.toByteArray(),keySource)
        println("加密后的字符串:$encryptString")

        var decryptString = AESUtils.decrypt(encryptString.toByteArray(),keySource)
        println("解密后的字符串:$decryptString")
    }
}
